﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Number To Letter | Ahmad Ahmadi</title>

<style type="text/css">
    html,body
    {
        direction:rtl;
        font-family:Tahoma;
    }
    #result
    {
        border:1px solid black;
        padding:10px;
        margin:10px;
        height:30px;
    }
	#number
	{
		direction:ltr;
	}
</style>

    <script src="NumberToLetter.js" type="text/javascript"></script>

</head>
<body>

<input id="number" type="text" />
<input type="button" onclick="convert()" value="Convert" />

<br /><br />

<span id="result"></span>

 <script type="text/javascript">
     function convert() {
         var number = document.getElementById("number").value;
         var resultTag = document.getElementById("result");

         resultTag.innerHTML = convertNumberToString(number);
     }
 </script>
 
 </body>
</html>
